package com.yxjx.duoxue.my;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import android.view.View.OnClickListener;

import com.yxjx.duoxue.BaseActionBarActivity;
import com.yxjx.duoxue.R;
import com.yxjx.duoxue.utils.UIHelper;

public class MyPageActivity extends BaseActionBarActivity {
	

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setCustomActionBar(R.layout.head_basic_green_my);
		setContentView(R.layout.fragment_my_page_activity);
		customizeActionBarTitle("我的");
		
		UIHelper.setClickListener(mActionBar.getCustomView(), R.id.messages, new OnClickListener() {
			@Override
			public void onClick(View arg0) {
				showMessageList(arg0);
			}
		});
	}
	
	public void showMessageList(View view) {
		MyPageFragment fragment = (MyPageFragment) getSupportFragmentManager().findFragmentById(R.id.fragment);
		fragment.showMessageList(view);
	}
	
	
}
